module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const RoleSchema = new Schema({
    name: {
      type: String,
      require: true // 必填项
    },
    avatar: {
      type: String,
      require: true
    },
    content: {
      type: String,
      require: true
    },
    date: {
      type: String
    },
    images: {
      type: String
    },
    shares: {
      type: Number
    },
    comments: {
      type: Number
    },
    likes: {
      type: Number
    }
  });
  return mongoose.model("Video", RoleSchema, "video");
};
